import Request from "../utils/request";
export const getindex = (data) => {
	return Request({
		url: `index/login`,
		method: 'get',
		data: data
	})
}
export const getemp = (data) => {
	return Request({
		url: `emp/index`,
		method: 'get',
		data: data
	})
}
export const getempdetail = (data) => {
	return Request({
		url: `emp/detail`,
		method: 'post',
		data: data
	})
}
export const getempadd = (data) => {
	return Request({
		url: `emp/add`,
		method: 'post',
		data: data
	})
}
export const getempedit = (data) => {
	return Request({
		url: `emp/edit`,
		method: 'get',
		data: data
	})
}
// export const getempedit = (data) => {
// 	return Request({
// 		url: `emp/edit`,
// 		method: 'get',
// 		data: data
// 	})
// }
export const getempdel = (data) => {
	return Request({
		url: `emp/del`,
		method: 'post',
		data: data
	})
}
export const getjobindex = (data) => {
	return Request({
		url: `job/index`,
		method: 'get',
		data: data
	})
}
export const getgoodscategoryindex = (data) => {
	return Request({
		url: `goods/category/index`,
		method: 'get',
		data: data
	})
}
export const getgoodscategoryadd= (data) => {
	return Request({
		url: `goods/category/add`,
		method: 'post',
		data: data
	})
}
export const getgoodscategoryedit = (data) => {
	return Request({
		url: `goods/category/edit`,
		method: 'get',
		data: data
	})
}
export const getgoodscategoryedits = (data) => {
	return Request({
		url: `goods/category/edit`,
		method: 'post',
		data: data
	})
}
export const getgoodscategorydel = (data) => {
	return Request({
		url: `goods/category/del`,
		method: 'post',
		data: data
	})
}
// export const getgoodscategoryindex = (data) => {
// 	return Request({
// 		url: `goods/category/index`,
// 		method: 'get',
// 		data: data
// 	})
// }
export const getproductadd = (data) => {
	return Request({
		url: `goods/goods/add`,
		method: 'post',
		data: data
	})
}
export const getproductdel = (data) => {
	return Request({
		url: `goods/goods/del`,
		method: 'post',
		data: data
	})
}
export const getproductedit = (data) => {
	return Request({
		url: `goods/goods/edit`,
		method: 'post',
		data: data
	})
}
export const getproductedits = (data) => {
	return Request({
		url: `goods/goods/edit`,
		method: 'get',
		data: data
	})
}
export const getproductindex = (data) => {
	return Request({
		url: `goods/goods/index`,
		method: 'post',
		data: data
	})
}
export const getcommonupload = (data) => {
	return Request({
		url: `goods/common/upload`,
		method: 'post',
		data: data
	})
}
export const getbillingindex = (data) => {
	return Request({
		url: `billing/index`,
		method: 'get',
		data: data
	})
}
export const getbillinggetTableList = (data) => {
	return Request({
		url: `billing/getTableList`,
		method: 'get',
		data: data
	})
}
export const getbillingtutor = (data) => {
	return Request({
		url: `billing/tutor`,
		method: 'get',
		data: data
	})
}
export const getbillinggetTutorList = (data) => {
	return Request({
		url: `billing/getTutorList`,
		method: 'get',
		data: data
	})
}
export const getbillingdetail = (data) => {
	return Request({
		url: `billing/detail`,
		method: 'get',
		data: data
	})
}
export const getshopindex = (data) => {
	return Request({
		url: `shop/index`,
		method: 'get',
		data: data
	})
}
export const getshopmy = (data) => {
	return Request({
		url: `shop/my`,
		method: 'get',
		data: data
	})
}
export const getmessageindex = (data) => {
	return Request({
		url: `message/index`,
		method: 'get',
		data: data
	})
}
export const getmessagedetail = (data) => {
	return Request({
		url: `message/detail`,
		method: 'get',
		data: data
	})
}
export const getmessagereadAll = (data) => {
	return Request({
		url: `message/readAll`,
		method: 'post',
		data: data
	})
}
export const getuserlogout = (data) => {
	return Request({
		url: `user/logout`,
		method: 'post',
		data: data
	})
}